home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / c-runtime / depend.awk next >
Encoding:
Text File  |  1992-03-31  |  380 b   |  31 lines

  1. /BEGIN/ {    line = 0;
  2.     printed = 0;
  3. }
  4.  
  5. /^# DO NOT DELETE THIS LINE/ {    line = 1;
  6. }
  7.  
  8. /^.*\.o.*:.*\.cc[ \t]/ {
  9.     if( line ) {
  10.         print "$(OBJ_DIR)/"$0 ;
  11.         printed = 1;
  12.     }
  13. }
  14. /^.*\.o.*:.*\.m[ \t]/ {
  15.     if( line ) {
  16.         print "$(OBJ_DIR)/"$0 ;
  17.         printed = 1;
  18.     }
  19. }
  20. /^.*\.o.*:.*\.c[ \t]/ {
  21.     if( line ) {
  22.         print "$(OBJ_DIR)/"$0 ;
  23.         printed = 1;
  24.     }
  25. }
  26.  
  27. {    if( !printed )
  28.         print $0;
  29.     printed = 0;
  30. }
  31.